import request from '@/utils/request.js';
// 查询首页二级分类
export const reqCategoryTwo = () => request({ url: '/category/selectLevelTwo', method: 'GET' });
// 首页分页查询接口
export const reqGoodsList = (data) => request({ url: '/commodity/selectList', method: 'GET', params: data });
// 获取商品详情
export const reqGoodsDetail = (data) => request({ url: '/commodity/selectDetails', method: 'GET', params: data });
// 根据分类查询商品列表
export const reqGoodsListByCategory = (data) => request({ url: '/commodity/selectByCategory', method: 'GET', params: data });